export function encode(val) {
    return window.btoa(window.escape(JSON.stringify(val)))
}
export function decode(val) {
    return JSON.parse(window.unescape(window.atob(val)))
}
